.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 32px); /* 修改这里，减去头部导航栏高度 */
  padding: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  margin-top: -64px;
}

.prepareCard {
  width: 100%;
  max-width: 600px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

  :global {
    .ant-card-body {
      padding: 24px;
    }

    .ant-typography {
      color: #fff;
    }

    .ant-select {
      width: 100%;
    }

    .ant-select-selector {
      background: rgba(255, 255, 255, 0.05) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-radius: 8px !important;
      color: #fff !important;
    }

    .ant-select-selection-item {
      color: #fff !important;
    }

    .ant-select-arrow {
      color: rgba(255, 255, 255, 0.5) !important;
    }
  }
}

.videoContainer {
  margin: 24px 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.videoPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audioVisualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;

  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transform: scaleX(var(--volume, 0));
    transform-origin: left;
    transition: transform 0.1s ease;
  }
}

.controls {
  margin-top: 24px;
}

.deviceSelectors {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deviceControls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;

  :global {
    .ant-btn {
      min-width: 120px;
      height: 40px;
      border-radius: 8px;
      font-weight: 500;
      transition: all 0.3s;

      &:not(.ant-btn-primary) {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;

        &:hover {
          background: rgba(255, 255, 255, 0.2);
          border-color: rgba(255, 255, 255, 0.3);
        }
      }

      &.ant-btn-primary {
        background: linear-gradient(135deg, #60a5fa, #a78bfa);
        border: none;
        box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);

        &:hover {
          background: linear-gradient(135deg, #3b82f6, #8b5cf6);
          transform: translateY(-1px);
          box-shadow: 0 6px 16px rgba(96, 165, 250, 0.4);
        }
      }
    }
  }
}

.permissionButtons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
} 